import './assets/css/global.css'
import {
    createApp
} from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import {icons} from "@element-plus/icons-vue/global";

import App from './App.vue'
import router from './router'
import api from './api/index.js'


// const cors = require('cors');


const app = createApp(App)
app.use(router)
app.use(ElementPlus)
// app.use(cors)

for (const [key, component] of Object.entries(icons)) {
    app.component(key, component)
}

app.config.globalProperties.$api = api
app.mount('#app')